package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2019-11-06
 */
public class ExceptionLog extends Model<ExceptionLog> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 所对应的异常全类名
     */
    private String className;

    /**
     * 异常信息
     */
    private String msg;

    /**
     * 异常发生的时间
     */
    private Date time;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ExceptionLog{" +
            "id=" + id +
            ", className=" + className +
            ", msg=" + msg +
            ", time=" + time +
        "}";
    }
}
